home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / JPEG Convert 1.0 Source / JPEG Convert-compile notes next >
Encoding:
Text File  |  1993-02-10  |  5.4 KB  |  162 lines  |  [ttro/ttxt]

  1. How to compile:
  2.     "JPEG Convert" by James H. Brunner  and
  3.     the Independent JPEG Group's software
  4. ===========================================
  5. (this file created with Monaco 9 font)
  6.  
  7. 1.  Obtain the current release of the Independent JPEG Group's software.  
  8.     As of the writing of this text, the current public version is v4.  
  9.     Here are the instructions for obtaining the current software from the 
  10.     Independent JPEG Group (extracted from the Independent JPEG Group's 
  11.     "README" file):
  12.  
  13.         The "official" archive site for this software is ftp.uu.net 
  14.         (Internet address 137.39.1.9 or 192.48.96.9).  The most recent 
  15.         released version can always be found there in directory 
  16.         graphics/jpeg.  This particular version will be archived as 
  17.         jpegsrc.v4.tar.Z.  If you are on the Internet, you can retrieve 
  18.         files from UUNET by anonymous FTP.  If you don't have FTP access, 
  19.         UUNET's archives are also available via UUCP; contact 
  20.         postmaster@uunet.uu.net for information on retrieving files that 
  21.         way.
  22.         
  23.     You will have to uncompress and untar the archive.  On a UNIX 
  24.     machine, this can be done by:
  25.     
  26.         uncompress jpegsrc.v4.tar.Z
  27.     
  28.     which will uncompress and leave the file:  jpegsrc.v4.tar
  29.     
  30.         tar -xvf jpegsrc.v4.tar
  31.         
  32.       which will untar (un-archive) the file and create about a zillion 
  33.       files in the current directory.
  34.       
  35.       If you are not using a UNIX machine to retrieve the JPEG software, you 
  36.       can use "MacCompress" (3.2 or better) to uncompress the file and use 
  37.       "tar" (3.0 or better) to un-tar it.  Both of these utilities are 
  38.       available from sumex-aim.stanford.edu in the info-mac/util directory.
  39.       
  40. 2.  Copy all of the Independent JPEG Group's files into a new directory 
  41.     for your project
  42.  
  43. 3.  Copy the JPEG Convert files ("JPEG Convert.h", "JPEG Convert1.c", 
  44.     "JPEG Convert2.c", "JPEG Convert3.c", "JPEG Convert.π.rsrc") to the 
  45.     same directory.
  46.     
  47. 4.  Create a new Think C project in this directory called
  48.     "JPEG Convert.π".  You can create the "pi" character by hitting 
  49.     option-p.  The "pi" is a convention often used to indicate a 
  50.     project.  You can use another convention if you wish, however, the 
  51.     resource file name must match the project name (followed by ".rsrc").
  52.  
  53. 5.  COPY "jmemansi.c" to "jmemsys.c".
  54.     
  55. 6.  Add the following to the project.  The following is divided into a 
  56.     suggested segment partitioning.  You can partition it differently if 
  57.     you wish (if you know what you're doing, you may want to create separate
  58.     library projects for DLIBOBJECTS, CLIBOBJECTS, and COMOBJECTS).
  59.     
  60.     Segment 1:
  61.         JPEG Convert1.c
  62.         JPEG Convert2.c
  63.         JPEG Convert3.c
  64.         MacTraps (library)
  65.         
  66.     Segment 2:
  67.         MacTraps2 (library)
  68.         ANSI (library)
  69.         
  70.     Segment 3:
  71.        (All DLIBOBJECTS from makefile.ansi.  These include:)
  72.         jdmaster.c
  73.         jddeflts.c
  74.         jbsmooth.c
  75.         jdarith.c
  76.         jdcolor.c
  77.         jdhuff.c
  78.         jdmcu.c
  79.         jdpipe.c
  80.         jdsample.c
  81.         jquant1.c
  82.         jquant2.c
  83.         jrevdct.c
  84.         jrdjfif.c
  85.         jwrgif.c
  86.         jwrppm.c
  87.         jwrrle.c
  88.         jwrtarga.c
  89.         
  90.     Segment 4:
  91.        (All CLIBOBJECTS from makefile.ansi.  These include:)
  92.         jcmaster.c
  93.         jcdeflts.c
  94.         jcarith.c
  95.         jccolor.c
  96.         jcexpand.c
  97.         jchuff.c
  98.         jcmcu.c
  99.         jcpipe.c
  100.         jcsample.c
  101.         jfwddct.c
  102.         jwrjfif.c
  103.         jrdgif.c
  104.         jrdppm.c
  105.         jrdrle.c
  106.         jrdtarga.c
  107.        (All COMOBJECTS from makefile.ansi EXCEPT jerror.  These include:)
  108.         jutils.c
  109.         jmemmgr.c
  110.         jmemsys.c
  111.  
  112. 7.  Set up these key preferences in the Think C "Options..." dialog:
  113.  
  114.     Preferences:
  115.         (Nothing critical)
  116.         
  117.     Language Settings:
  118.         Check Pointer Types
  119.         Language Extensions - Think C
  120.         Strict Prototype Enforcement - Require Prototypes
  121.         
  122.     Compiler Settings:
  123.         Don't use:  4-byte ints (unless you want to recompile ANSI)
  124.         Don't use:  8-byte doubles (unless you want to recompile ANSI)
  125.         \p is unsigned char[]
  126.         (I suggest leaving the rest (actually all) as factory defaults)
  127.         
  128.     Code Optimization:
  129.         (check everything)
  130.         
  131.     Debugging:
  132.         (Nothing critical)
  133.         
  134.     Prefix:
  135.         (the prefix area should include 1 line:)
  136.         #define __STDC__ 1
  137.         (note, this is case sensitive and there are 4 underscores total)
  138.         
  139. 8.  Set up the project type:
  140.     
  141.     Choose the "Application" radio button.
  142.     
  143.     Set the Creator to:  Ijgp    (4 characters, case sensitive, first is uppercase-eye)
  144.     
  145.     Set the partition to 512.  (It could probably be smaller if it has to.)
  146.     
  147.     Set the following SIZE flags (58C0):
  148.         Multi-Finder Aware
  149.         Background Null Events
  150.         Suspend & Resume Events
  151.         32-Bit Compatible
  152.         HighLevelEvent Aware
  153.         
  154. 9.  Build the application.  The resultant application should be saved as "JPEG Convert".
  155.  
  156. 10. After building the application, you probably want to set the desired memory size (in the
  157.     Finder with "Get Info") to something much larger like 4096.  When launched, the application
  158.     will attempt to get 4 meg of memory.  If less is available, that is OK if at least 512k is
  159.     still available.  More memory allows the JPEG code to function more efficiently without 
  160.     having to create temp files.
  161.  
  162. ================= That's it ========================